package com.atkinsglobal.basic.validation;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.format.annotation.DateTimeFormat.ISO;

public class Model {

	String name;
	
	//@Min(0) -- could use this JSR-303 Bean Validation API
	int id;
	
	@DateTimeFormat(iso=ISO.DATE) //yyyy-MM-dd
	Date dob;
	
	ModelComponent component;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public Date getDob() {
		return dob;
	}
	public void setDob(Date dob) {
		this.dob = dob;
	}
	public ModelComponent getComponent() {
		return component;
	}
	public void setComponent(ModelComponent component) {
		this.component = component;
	}
	
	
	
}
